﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SiteMaster
/// </summary>
public class SiteMaster:SystemX.Web.SiteMaster
{
	/// <summary>
	/// Check if a tag has been selected,and return the specified css class.
	/// </summary>
	/// <param name="navTag"></param>
	/// <param name="yescss"></param>
	/// <returns></returns>
	protected string CheckTagCss(string navTag, string yescss,string noCss)
	{
		var url = Request.Url.ToString();
		if (url.IndexOf(navTag, StringComparison.OrdinalIgnoreCase) > -1) return yescss;
		return noCss??"";
	}
}
